<?php
    
    namespace Admin\Controller;
    
    use Think\Controller;
    
    class IndexController extends Controller
    {
        public function index()
        {
//            dump(D('Admin')->select());  //数据内容
//            die();
            /*   dump(D('Admin')->ok());
               dump(D()->_sql());   //数据表
               die;*/
            
            $news = D('News')->maxcount();
            $newscount = D('News')->getNewsCount(['status' => 1]);
            $positionCount = D('position')->getCount(['status' => 1]);
            $adminCount = D('Admin')->getLastLoginUsers();
            $this->display();
        }
        
        public function main()
        {
            $this->display();
        }
        
    }